<?PHP if(isset($tree['son']))foreach($tree['son'] as $node_group):if($node_group['child_node_num']>0):?>
    <li>
        <a><?PHP echo $node_group['name']; ?></a>
        <?PHP
            echo '<ul>';
            $this->load->view('admin/main/tree',array('tree'=>$node_group));
            echo '</ul>';
        ?>
    </li>
<?PHP endif;endforeach;?>
<?PHP if(isset($tree['nodes']))foreach($tree['nodes'] as $node):?>
    <li><a href="<?PHP echo site_url($node['modules'].$node['controller'].'/'.$node['method'])?>" target="navTab" rel="node_<?PHP echo $node['id']?>"><?PHP echo $node['title']?></a></li>
<?PHP endforeach;?>
